import request from '@/utils/request'

// 查询基础题库列表
export function listBaseQuestionBank(query) {
  return request({
    url: '/yljf/baseQuestionBank/list',
    method: 'get',
    params: query
  })
}

// 查询基础题库详细
export function getBaseQuestionBank(id) {
  return request({
    url: '/yljf/baseQuestionBank/' + id,
    method: 'get'
  })
}

// 新增基础题库
export function addBaseQuestionBank(data) {
  return request({
    url: '/yljf/baseQuestionBank',
    method: 'post',
    data: data
  })
}

// 修改基础题库
export function updateBaseQuestionBank(data) {
  return request({
    url: '/yljf/baseQuestionBank',
    method: 'put',
    data: data
  })
}

// 删除基础题库
export function delBaseQuestionBank(id) {
  return request({
    url: '/yljf/baseQuestionBank/' + id,
    method: 'delete'
  })
}
